<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>winDHP2.0开发工具</title>
    <link rel="stylesheet" type="text/css" href="static/layui/css/layui.css" />
    <link rel="stylesheet" type="text/css" href="static/json/s.css" />
    <link rel="stylesheet" type="text/css" href="static/css/common.css" />
  </head>
  <body>
    <div class="win_content">
      <div class="win_content_inner">
        <div class="layui-row win_search">
          <form
            class="layui-form win_form"
            lay-filter="searForm"
            action=""
            method="post"
            onsubmit="return false"
            id="searForm"
          >
            <div class="layui-inline">
              <select name="host">
                <option value="http">HTTP</option>
                <option value="https">HTTPS</option>
              </select>
            </div>
            <div class="layui-inline win_wid150">
              <input
                type="text"
                name="ip"
                required
                lay-verify="required"
                placeholder="请输入IP"
                value="127.0.0.1"
                autocomplete="off"
                class="layui-input"
              />
            </div>
            <span>:</span>
            <div class="layui-inline win_wid150">
              <input
                type="text"
                name="port"
                required
                lay-verify="required"
                placeholder="请输入端口"
                value="1880"
                autocomplete="off"
                class="layui-input"
              />
            </div>
            <div class="layui-inline win_wid250">
              <input
                type="text"
                name="classPath"
                required
                lay-verify="required"
                placeholder="请输入路径"
                value="/windhptransmit"
                autocomplete="off"
                class="layui-input"
              />
            </div>
            <button class="layui-btn" lay-submit lay-filter="searForm">
              验证transmit状态
            </button>
          </form>
        </div>
        <div class="layui-row win_config">
          <ul class="win_config" id="win_config" style="display: none"></ul>
          <div class="win_tag" id="win_tag" style="display: none"></div>
        </div>
        <div class="layui-row win_tabs">
          <div class="layui-tab layui-tab-brief" lay-filter="win_tabs">
            <ul class="layui-tab-title">
              <li class="layui-this">配置文件</li>
              <li>日志文件</li>
            </ul>
            <div class="layui-tab-content">
              <div class="layui-tab-item layui-show">
                <div class="layui-row">
                  <div class="layui-form">
                    <div class="layui-inline">
                      <select name="json" id="json" lay-filter="jsonFilter">
                        <option value="api.json">api.json</option>
                        <option value="key.json">key.json</option>
                        <option value="region.json">region.json</option>
                        <option value="odin.json">odin.json</option>
                      </select>
                    </div>
                    <button class="layui-btn" onclick="getConfig()">
                      加载配置文件数据
                    </button>
                    <button class="layui-btn" onclick="setConfig()">
                      更新配置文件数据
                    </button>
                  </div>
                </div>
                <div class="layui-row win_json">
                  <div class="left">
                    <div class="inner" id="jsonHtml"></div>
                  </div>
                  <div class="right">
                    <textarea
                      name="self"
                      id="self"
                      placeholder="请输入内容"
                      class="layui-textarea"
                    ></textarea>
                  </div>
                </div>
              </div>
              <div class="layui-tab-item">
                <div class="layui-row">
                  <div class="layui-form">
                    <div class="layui-inline win_form_date">
                      <input
                        type="text"
                        class="layui-input"
                        id="date"
                        name="date"
                        readonly
                      />
                      <label
                        for="date"
                        class="layui-icon layui-icon-date"
                      ></label>
                    </div>
                    <button class="layui-btn" onclick="getFileTable();">
                      查询
                    </button>
                  </div>
                </div>
                <div class="layui-row win_table">
                  <table
                    class="layui-table"
                    id="table_file"
                    lay-filter="table_file_id"
                  ></table>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <script type="text/javascript" src="static/json/urchin.js"></script>
    <script type="text/javascript" src="static/json/c.js"></script>
    <script type="text/javascript" src="static/json/m.js"></script>
    <script type="text/javascript" src="static/js/dayjs.min.js"></script>
    <script type="text/javascript" src="static/layui/layui.js"></script>
    <script src="static/js/pages/index.js?v=0.0.1"></script>
  </body>
</html>
